Try catch

Added an exception system.