Fix render error 500 in exception. Add return in error method