Removed unnecessary code from try block. Only decode packet is needed.