Previously I have found that Ubuntu would not suspend if an SSH session was open, but on a new laptop install of Ubuntu 11.04 I find that the laptop will go into suspend according to it's normal schedule, even though there was an open SSH connection. Suspending means the connection is closed, and tasks taking place on the remote machine are cancelled.
Any idea how to get the previous behaviour back?