inputhandler now works and server now stops on process exit