fixes #3637 - refactor exception rake task

Initially I thought we do not render foreman error codes, but we do by default.
They are present on error page (500).