adding catch general exception