Plugin error restart app

Is there any way that if there is an error in a plugin can prevent the app from restarting?