The script is halted and a '500 Internal Server Error' is issued when a fatal error occurs.

Signed-off-by: Jesse van Assen <jesse.v.assen@gmail.com>
Script is killed with the proper exit code.
Added changelog entry.
Fix #2515 (manually merge PR #2516)