Don't close Spiral Knights by closing the client (quit button or Alt-F4). That will log you out and thus return you to Haven next time you login.
Instead open task manager, find Spiral Knights, right click and choose Go to Process. That will take you to a java.exe process. Right click and select End Process.
When you kill Spiral Knights this way, the server will consider you being disconnected instead of logged out. This gives you a 15 minutes window to log back in, and when you do, you will be taken back to where you were.
However note that if you are solo'ing, your knight is vulnerable before you log back in. If your knight is killed, you only have 2 minutes to get back in, or the revive timer will kick you back to Haven.