Javascript - Handling Runtime Errors using try/catch/finally