void closeDevice()

This function can be used to close a device if one is open.

Return

Nothing returned