Clean ups after server shutdown. Added new option for `serverTimeout`