Added some basic error handlers in control input