Create shell specific exception that unifies the formatting and is easily catchable
File system specific exception
Extend a real database exception and always log this kind of exception
Enclose as much as possible in the try block, also extracted things that happen after sending the request to the client into separate methods
Continued with nginx install script

Still fails during OpenSSL's make test due to linker error, going to try with latest Ubuntu server