diff --git a/src/singleinstance.py b/src/singleinstance.py
index 09ca2e9a..660dcf54 100644
--- a/src/singleinstance.py
+++ b/src/singleinstance.py
@@ -55,12 +55,9 @@ class singleinstance(object):
                 )
             except OSError as e:
                 if e.errno == 13:
-                    print(
-                        'Another instance of this application'
-                        ' is already running'
-                    )
-                    sys.exit(-1)
-                print(e.errno)
+                    sys.exit(
+                        'Another instance of this application is'
+                        ' already running')
                 raise
             else:
                 pidLine = "%i\n" % self.lockPid
@@ -75,8 +72,9 @@ class singleinstance(object):
                     fcntl.lockf(self.fp, fcntl.LOCK_EX | fcntl.LOCK_NB)
                 self.lockPid = os.getpid()
             except IOError:
-                print ('Another instance of this application is already running')
-                sys.exit(-1)
+                sys.exit(
+                    'Another instance of this application is'
+                    ' already running')
             else:
                 pidLine = "%i\n" % self.lockPid
                 self.fp.truncate(0)
@@ -99,7 +97,7 @@ class singleinstance(object):
                 pass
 
             return
-        print ("Cleaning up lockfile")
+
         try:
             if sys.platform == 'win32':
                 if hasattr(self, 'fd'):