Delayed sending the KeepAlive packet for 3 seconds after login.

This should alleviate #889.