Catch signal exception and log it