non-blocking socket accepting
Added shutdown hook
Removed unused linebreak
Added support for methods without parameters