Added error messages whenever some exception happens