Add exception handling.

Also add fancy output for nightly build.